<%@ page import="projetjee.Photo" %>



<div class="fieldcontain ${hasErrors(bean: photoInstance, field: 'picture', 'error')} required">
	<label for="picture">
		<g:message code="photo.picture.label" default="Picture" />
		<span class="required-indicator">*</span>
	</label>
	<input type="file" id="picture" name="picture" />
</div>

<div class="fieldcontain ${hasErrors(bean: photoInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="photo.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${photoInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: photoInstance, field: 'nom', 'error')} ">
	<label for="nom">
		<g:message code="photo.nom.label" default="Nom" />
		
	</label>
	<g:textField name="nom" value="${photoInstance?.nom}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: photoInstance, field: 'photoTag', 'error')} ">
	<label for="photoTag">
		<g:message code="photo.photoTag.label" default="Photo Tag" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${photoInstance?.photoTag?}" var="p">
    <li><g:link controller="photoTaggee" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="photoTaggee" action="create" params="['photo.id': photoInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'photoTaggee.label', default: 'PhotoTaggee')])}</g:link>
</li>
</ul>

</div>

